
<!doctype html>
<html class="no-js">
<#include "../../common/header.ftl">
<script type="text/javascript" src="${basePath}/js/admin/edit.js?v=201711021700"></script>
<script type="text/javascript" src="${basePath}/js/md5.js"></script>
<head>
<meta charset="UTF-8">
<title>编辑账号信息</title>
<style>
	.foot{
		margin-top: 5%;
    	margin-left: 10%;
	}
	.lable_text{
		padding:0px 8px;
	}
	.hide{
		display:none;
	}
	.readonly-input{
		background-color: #e2e2e2;
	}
	.left{
		float:left;
	    width: 45%;
	}
	.answer-tips{
		color:red;
	}
</style>
</head>
<body>
<div style="min-height: 80%; min-width: 90%; margin: 20px 20px;">
	<div style="width:80%;">
		<form class="layui-form layui-form-pane">
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">登录账号*</label>
				<div class="layui-input-block">
					<input type="text"	name="accountName" required="" lay-verify="required"
						placeholder="请输入登录账号" value="${admin.accountName!}" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">登录密码*</label>
				<div class="layui-input-block">
					<#if admin.password??>
					<input type="text"	name="password" required="" lay-verify="required"
						placeholder="留空则不修改密码" value="" autocomplete="off" class="layui-input">
					<#else>
					<input type="text"	name="password" required="" lay-verify="required"
						placeholder="请输入登录密码" value="" autocomplete="off" class="layui-input">
					</#if>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">真实姓名</label>
				<div class="layui-input-block">
						<input type="text"	name="realName" required="" lay-verify="required"
						placeholder="请输入真实姓名" value="${admin.realName!}" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">手机号</label>
				<div class="layui-input-block">
						<input type="text"	name="phone" required="" lay-verify="required"
						placeholder="请输入手机号" value="${admin.phone!}" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">邮箱</label>
				<div class="layui-input-block">
						<input type="text"	name="email" required="" lay-verify="required"
						placeholder="请输入邮箱" value="${admin.email!}" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">角色*</label>
				<div class="layui-input-block">
				<#list roleList! as role>
				 	<input type="checkbox" class="role-checkbox" title="${role.roleName}" data-id="${role.roleId}" <#if role.isChoose?? && role.isChoose==1> checked</#if>  />
				</#list>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">是否启用*</label>
				<div class="layui-input-block">
					<input type="radio"  name="isEnabled" value="1" title="启用" <#if !(admin.isEnabled??) || (admin.isEnabled?? && admin.isEnabled == 1)>checked="checked"</#if> >
					<input type="radio"  name="isEnabled" value="0" title="禁用" <#if admin.isEnabled?? && admin.isEnabled == 0>checked="checked"</#if> >
				</div>
			</div>
		</form>
	</div>
	<div class="foot">
		<button type="button" class="layui-btn layui-btn-normal"
			id="save-button">
			<i class="layui-icon">&#xe605;</i>保存
		</button>
		<button type="button" class="layui-btn layui-btn-normal"
			id="close-button">
			<i class="layui-icon">&#x1006;</i>关闭
		</button>
	</div>
</div>
</body>
<script type="text/javascript">
	var basePath = "${basePath}";
	var init={
	 	adminId:"${admin.id!}"
	}
	layui.use(['form','layer'], function() {
		var form = layui.form();
		var layer = layui.layer;
	});
</script>
</html>
